﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using blackhouse.WebNemo.Data;
using blackhouse.Data;
using System.Data;

namespace blackhouse.WebNemo.Cms.Data {
	public class CmsDataAccess : SqlDataAccess {

		#region Fields

		private MsSqlAdoDataHelper dataHelper;

		#endregion

		#region Constructors

		public CmsDataAccess(string connectionString)
			: base(connectionString) {
			this.dataHelper = new MsSqlAdoDataHelper(connectionString);
			SqlVersioning versioning = new SqlVersioning(connectionString, typeof(CmsDataAccess).Assembly);
		}

		public override IDataReader GetReaderForNemoUsers() {
			this.dataHelper.Reset();
			this.dataHelper.ProcedureName = "bhp_CmsNemoUsers";
			return this.dataHelper.Execute();
		}

		#endregion

	}
}